import request from '@/utils/request'
/**
 * 列表
 * @param {array} params 请求参数
 */

//获取平台商品
export function getGoodsList(data) {
    return request({
        url: '/adminapi/goods/goods/list',
        method: 'post',
        data: data
    })
}
//获取平台商品库存明细
export function inventoryRecord(data) {
    return request({
        url: '/adminapi/goods/goods/inventoryRecord',
        method: 'post',
        data: data
    })
}
//添加平台商品
export function addGoodsList(data) {
    return request({
        url: '/adminapi/goods/goods/add',
        method: 'post',
        data: data
    })
}
//获取商品详情
export function getGoodsDetail(data) {
    return request({
        url: '/adminapi/goods/goods/detail',
        method: 'post',
        data: data
    })
}
//修改平台商品
export function editGoodsList(data) {
    return request({
        url: '/adminapi/goods/goods/edit',
        method: 'post',
        data: data
    })
}
//删除平台商品
export function delGoodsList(data) {
    return request({
        url: '/adminapi/goods/goods/del',
        method: 'post',
        data: data
    })
}
//商品上下架修改
export function GoodsStatusList(data) {
    return request({
        url: '/adminapi/goods/goods/status',
        method: 'post',
        data: data
    })
}
//商品库存修改
export function GoodsStockList(data) {
    return request({
        url: '/adminapi/goods/goods/stock',
        method: 'post',
        data: data
    })
}
//获取平台商品类目
export function getCategoryList(params) {
    return request({
        url: '/adminapi/goods/category/list',
        method: 'post',
        params: params
    })
}
//添加平台商品类目
export function addCategoryList(data) {
    return request({
        url: '/adminapi/goods/category/add',
        method: 'post',
        data: data
    })
}
//修改平台商品类目
export function editCategoryList(data) {
    return request({
        url: '/adminapi/goods/category/edit',
        method: 'post',
        data: data
    })
}
//删除平台商品类目
export function delCategoryList(data) {
    return request({
        url: '/adminapi/goods/category/del',
        method: 'post',
        data: data
    })
}

//获取平台地址
export function getplatformAddressList(data) {
    return request({
        url: '/adminapi/platform/shippingAddress/getList',
        method: 'post',
        data: data
    })
}
//修改保存平台地址
export function SaveplatformAddress(data) {
    return request({
        url: '/adminapi/platform/shippingAddress/saveInfo',
        method: 'post',
        data: data
    })
}
//获取平台地址详情
export function geplatformAddressInfo(data) {
    return request({
        url: '/adminapi/platform/shippingAddress/getInfo',
        method: 'post',
        data: data
    })
}
//删除平台地址
export function delplatformAddress(data) {
    return request({
        url: '/adminapi/platform/shippingAddress/delInfo',
        method: 'post',
        data: data
    })
}
